//
//  huodongxiangqingViewController.m
//  wuyeviewcon
//
//  Created by dsdf on 16/1/18.
//  Copyright © 2016年 joey. All rights reserved.
//

#import "huodongxiangqingViewController.h"
#import "huodongrenshuViewController.h"
#import "canjiahuodongViewController.h"

@interface huodongxiangqingViewController ()

@end

@implementation huodongxiangqingViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    
    UIButton *button=[[UIButton alloc]init];
    button.frame=CGRectMake(0, 0, 375, 64);
    button.backgroundColor=[UIColor colorWithRed: 230/255.0 green:55/255.0 blue:55/255.0 alpha:1.0];
    [self.view addSubview:button];
    
    
    UILabel *labletext=[[UILabel alloc]init];
    labletext.frame=CGRectMake(155, 34, 66, 14);
    labletext.text=@"活动详情";
    labletext.adjustsFontSizeToFitWidth=YES;
    labletext.textColor=[UIColor whiteColor] ;
    [self.view addSubview:labletext];
    
    
    
    UIButton *button1=[[UIButton alloc]init ];//]WithFrame:CGRectMake(50, 50, 20, 20)];
    button1.frame=CGRectMake(22, 35, 20, 20);
    [button1 setBackgroundImage:[UIImage imageNamed:@"return@2x.png"] forState:UIControlStateNormal];
    [button1 addTarget:self action:@selector(fanhui:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button1];
    

    
}


#pragma mark - 导航右侧按钮的方法
-(void)messageBtnClick {
    [self.navigationController popViewControllerAnimated:YES];
    
    
}
- (IBAction)huodongrenshu:(id)sender {
    
    huodongrenshuViewController *demoVC=[[huodongrenshuViewController alloc]init];
    demoVC.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal;
    [self presentViewController:demoVC animated:YES completion:NULL];
    
    
    
}
- (IBAction)baomingcanjia:(id)sender {
    canjiahuodongViewController *demoVC= [[canjiahuodongViewController alloc]init];
    demoVC.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal;
    [self presentViewController:demoVC animated:YES completion:NULL];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)fanhui:(id)sender {
    [self dismissModalViewControllerAnimated:YES];
}



/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
